import { Application } from "egg";

export default (app: Application) => {
  const { controller, router } = app;
  router.post("/api/user/create", controller.user.createUserByEmail);
  router.get("/api/user/detail", app.jwt, controller.user.showUserList);
  router.post("/api/user/login", controller.user.userLogin);
  router.post('/api/user/sendCode',controller.user.sendCode)
  router.post('/api/user/loginByCellphone',controller.user.loginByCellphone)
  router.get('/api/user/passport/gitee',controller.user.oauth)
  router.get('/api/user/gitee/callback',controller.user.oauthGitee)
};